package bancosys.tec.rtm.impl.diagnostician;

import java.util.List;

import bancosys.tec.rtm.diagnostician.Diagnostician;
import bancosys.tec.rtm.diagnostician.GenericDiagnosticianCase;

/**
 * Caso de execucao de diagnosticadores simples que recebe lista a ser executada em construtor.
 * 
 * @author Marcio Ribeiro (mmr)
 * @created Jan 19, 2011
 */
public class SimpleDiagnosticianCase extends GenericDiagnosticianCase {
    private final List<Diagnostician> diagnosticians;

    /**
     * Construtor.
     * 
     * @param diagnosticians diagnosticadores a serem executados.
     */
    public SimpleDiagnosticianCase(List<Diagnostician> diagnosticians) {
        this.diagnosticians = diagnosticians;
    }

    /**
     * @return lista de diagnosticadores.
     * @throws Exception caso algo de inesperado ocorra.
     */
    public List<? extends Diagnostician> getDiagnosticiansListOfSystemInDebugMode() throws Exception {
        return diagnosticians;
    }

}
